<template>
  <div>
    <div>初始数据：{{ list }}</div>
    <div>过滤器：{{ filterList }}</div>
  </div>
</template>

<script>
import { computed, ref } from "vue";
export default {
  setup() {
    const list = ref([1, 2, 3, 4, 5, 6, 7, 8, 9]);
    const filterList = computed(() => {
      return list.value.filter((item) => item > 3);
    });
    return {
      list,
      filterList,
    };
  },
};
</script>

<style>
</style>